
#include "wait.h"



#define WAIT_DEVICE_CLOCK 8000    //Frequency in KHz
#define NUM_CYCLES_FOR_1MS 625 //(unsigned int)((2296*WAIT_DEVICE_CLOCK)/16.000)

void Wait(unsigned int num_ms){
 
  unsigned int i;
  unsigned int count_wait=0;
  
  
  for (count_wait=0;count_wait<num_ms;count_wait++){  
    for (i=0;i<NUM_CYCLES_FOR_1MS;i++);  
  }
  
}

void WaitShort(void){
 
  unsigned int i;
  //unsigned int count_wait=0;
  
  
    
    for (i=0;i<100;i++);  
  
  
}



